import request from '@/utils/request'

/**
 * 系统基础[角色配置]
 */
export function useBaseRoleApi() {
  return {
    /**
     * 角色查询
     * @constructor
     */
    GetBaseRoleList: async () => {
      return request({
        url: '/api-base/Role/list',
        method: 'get'
      })
    },

    /**
     * 角色用户
     * @param data
     * @constructor
     */
    PutBaseRoleSetUsers: async (data?: object) => {
      return request({
        url: '/api-base/Role/set_users',
        method: 'put',
        data
      })
    }
  }
}
